﻿using System.Data.SqlClient;

namespace Microsoft.Practices.EnterpriseLibrary.Data.Sql.Configuration
{
	public class SqlDatabase : Database
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="SqlDatabase"/> class with a connection string.
		/// </summary>
		/// <param name="connectionString">The connection string.</param>
		public SqlDatabase(string connectionString)
			: base(connectionString, SqlClientFactory.Instance)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="SqlDatabase"/> class with a
		/// connection string and instrumentation provider.
		/// </summary>
		/// <param name="connectionString">The connection string.</param>
		/// <param name="instrumentationProvider">The instrumentation provider.</param>
		public SqlDatabase(string connectionString, IDataInstrumentationProvider instrumentationProvider)
			: base(connectionString, SqlClientFactory.Instance, instrumentationProvider)
		{

		}
	}
}